<?php
namespace app\admin\validate;
use think\Validate;

class Art extends Validate {
    protected $rule = [
        ['title','require|max:20','标题必须传递|标题不得超过20个字符'],
        ['content','require'],
        ['cat_id','require'],
        ['number','require'],
    ];
}